home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / Components.p < prev    next >
Encoding:
Text File  |  1996-09-22  |  16.1 KB  |  477 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Components.p
  3.  
  4.      Contains:    Component Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 2.1.4
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Components;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __COMPONENTS__}
  28. {$SETC __COMPONENTS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ComponentsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __ERRORS__}
  35. {$I Errors.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __MEMORY__}
  41. {$I Memory.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __MIXEDMODE__}
  44. {$I MixedMode.p}
  45. {$ENDC}
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51. CONST
  52.     kAppleManufacturer            = 'appl';                        {  Apple supplied components  }
  53.     kComponentResourceType        = 'thng';                        {  a components resource type  }
  54.  
  55.     kAnyComponentType            = 0;
  56.     kAnyComponentSubType        = 0;
  57.     kAnyComponentManufacturer    = 0;
  58.     kAnyComponentFlagsMask        = 0;
  59.  
  60.     cmpWantsRegisterMessage        = $80000000;
  61.  
  62.     kComponentOpenSelect        = -1;                            {  ComponentInstance for this open  }
  63.     kComponentCloseSelect        = -2;                            {  ComponentInstance for this close  }
  64.     kComponentCanDoSelect        = -3;                            {  selector # being queried  }
  65.     kComponentVersionSelect        = -4;                            {  no params  }
  66.     kComponentRegisterSelect    = -5;                            {  no params  }
  67.     kComponentTargetSelect        = -6;                            {  ComponentInstance for top of call chain  }
  68.     kComponentUnregisterSelect    = -7;                            {  no params  }
  69.     kComponentGetMPWorkFunctionSelect = -8;                        {  some params  }
  70.  
  71. {  Component Resource Extension flags  }
  72.     componentDoAutoVersion        = $01;
  73.     componentWantsUnregister    = $02;
  74.     componentAutoVersionIncludeFlags = $04;
  75.     componentHasMultiplePlatforms = $08;
  76.  
  77. {  Set Default Component flags  }
  78.     defaultComponentIdentical    = 0;
  79.     defaultComponentAnyFlags    = 1;
  80.     defaultComponentAnyManufacturer = 2;
  81.     defaultComponentAnySubType    = 4;
  82.     defaultComponentAnyFlagsAnyManufacturer = 3;
  83.     defaultComponentAnyFlagsAnyManufacturerAnySubType = 7;
  84.  
  85. {  RegisterComponentResource flags  }
  86.     registerComponentGlobal        = 1;
  87.     registerComponentNoDuplicates = 2;
  88.     registerComponentAfterExisting = 4;
  89.  
  90.  
  91. TYPE
  92.     ComponentDescriptionPtr = ^ComponentDescription;
  93.     ComponentDescription = RECORD
  94.         componentType:            OSType;                                    {  A unique 4-byte code indentifying the command set  }
  95.         componentSubType:        OSType;                                    {  Particular flavor of this instance  }
  96.         componentManufacturer:    OSType;                                    {  Vendor indentification  }
  97.         componentFlags:            LONGINT;                                {  8 each for Component,Type,SubType,Manuf/revision  }
  98.         componentFlagsMask:        LONGINT;                                {  Mask for specifying which flags to consider in search, zero during registration  }
  99.     END;
  100.  
  101.     ResourceSpecPtr = ^ResourceSpec;
  102.     ResourceSpec = RECORD
  103.         resType:                OSType;                                    {  4-byte code   }
  104.         resID:                    INTEGER;                                {                }
  105.     END;
  106.  
  107.     ComponentResourcePtr = ^ComponentResource;
  108.     ComponentResource = RECORD
  109.         cd:                        ComponentDescription;                    {  Registration parameters  }
  110.         component:                ResourceSpec;                            {  resource where Component code is found  }
  111.         componentName:            ResourceSpec;                            {  name string resource  }
  112.         componentInfo:            ResourceSpec;                            {  info string resource  }
  113.         componentIcon:            ResourceSpec;                            {  icon resource  }
  114.     END;
  115.  
  116.     ComponentResourceHandle                = ^ComponentResourcePtr;
  117.     ComponentPlatformInfoPtr = ^ComponentPlatformInfo;
  118.     ComponentPlatformInfo = RECORD
  119.         componentFlags:            LONGINT;                                {  flags of Component  }
  120.         component:                ResourceSpec;                            {  resource where Component code is found  }
  121.         platformType:            INTEGER;                                {  gestaltSysArchitecture result  }
  122.     END;
  123.  
  124.     ComponentResourceExtensionPtr = ^ComponentResourceExtension;
  125.     ComponentResourceExtension = RECORD
  126.         componentVersion:        LONGINT;                                {  version of Component  }
  127.         componentRegisterFlags:    LONGINT;                                {  flags for registration  }
  128.         componentIconFamily:    INTEGER;                                {  resource id of Icon Family  }
  129.     END;
  130.  
  131.     ComponentPlatformInfoArrayPtr = ^ComponentPlatformInfoArray;
  132.     ComponentPlatformInfoArray = RECORD
  133.         count:                    LONGINT;
  134.         platformArray:            ARRAY [0..0] OF ComponentPlatformInfo;
  135.     END;
  136.  
  137.     ExtComponentResourcePtr = ^ExtComponentResource;
  138.     ExtComponentResource = RECORD
  139.         cd:                        ComponentDescription;                    {  registration parameters  }
  140.         component:                ResourceSpec;                            {  resource where Component code is found  }
  141.         componentName:            ResourceSpec;                            {  name string resource  }
  142.         componentInfo:            ResourceSpec;                            {  info string resource  }
  143.         componentIcon:            ResourceSpec;                            {  icon resource  }
  144.         componentVersion:        LONGINT;                                {  version of Component  }
  145.         componentRegisterFlags:    LONGINT;                                {  flags for registration  }
  146.         componentIconFamily:    INTEGER;                                {  resource id of Icon Family  }
  147.         count:                    LONGINT;                                {  elements in platformArray  }
  148.         platformArray:            ARRAY [0..0] OF ComponentPlatformInfo;
  149.     END;
  150.  
  151. {   Structure received by Component:         }
  152.     ComponentParametersPtr = ^ComponentParameters;
  153.     ComponentParameters = PACKED RECORD
  154.         flags:                    UInt8;                                    {  call modifiers: sync/async, deferred, immed, etc  }
  155.         paramSize:                UInt8;                                    {  size in bytes of actual parameters passed to this call  }
  156.         what:                    INTEGER;                                {  routine selector, negative for Component management calls  }
  157.         params:                    ARRAY [0..0] OF LONGINT;                {  actual parameters for the indicated routine  }
  158.     END;
  159.  
  160.     ComponentRecordPtr = ^ComponentRecord;
  161.     ComponentRecord = RECORD
  162.         data:                    ARRAY [0..0] OF LONGINT;
  163.     END;
  164.  
  165.     Component                            = ^ComponentRecord;
  166.     ComponentInstanceRecordPtr = ^ComponentInstanceRecord;
  167.     ComponentInstanceRecord = RECORD
  168.         data:                    ARRAY [0..0] OF LONGINT;
  169.     END;
  170.  
  171.     ComponentInstance                    = ^ComponentInstanceRecord;
  172.     RegisteredComponentRecordPtr = ^RegisteredComponentRecord;
  173.     RegisteredComponentRecord = RECORD
  174.         data:                    ARRAY [0..0] OF LONGINT;
  175.     END;
  176.  
  177.     RegisteredComponentInstanceRecordPtr = ^RegisteredComponentInstanceRecord;
  178.     RegisteredComponentInstanceRecord = RECORD
  179.         data:                    ARRAY [0..0] OF LONGINT;
  180.     END;
  181.  
  182.     ComponentResult                        = LONGINT;
  183.  
  184. CONST
  185.     mpWorkFlagDoWork            = $01;
  186.     mpWorkFlagDoCompletion        = $02;
  187.     mpWorkFlagCopyWorkBlock        = $04;
  188.     mpWorkFlagDontBlock            = $08;
  189.     mpWorkFlagGetProcessorCount    = $10;
  190.     mpWorkFlagGetIsRunning        = $40;
  191.  
  192.  
  193. TYPE
  194.     ComponentMPWorkFunctionHeaderRecordPtr = ^ComponentMPWorkFunctionHeaderRecord;
  195.     ComponentMPWorkFunctionHeaderRecord = RECORD
  196.         headerSize:                UInt32;
  197.         recordSize:                UInt32;
  198.         workFlags:                UInt32;
  199.         processorCount:            UInt16;
  200.         unused:                    SInt8;
  201.         isRunning:                SInt8;
  202.     END;
  203.  
  204.     ComponentMPWorkFunctionProcPtr = ProcPtr;  { FUNCTION ComponentMPWorkFunction(globalRefCon: UNIV Ptr; header: ComponentMPWorkFunctionHeaderRecordPtr): ComponentResult; }
  205.  
  206.     ComponentRoutineProcPtr = ProcPtr;  { FUNCTION ComponentRoutine(VAR cp: ComponentParameters; componentStorage: Handle): ComponentResult; }
  207.  
  208.     ComponentMPWorkFunctionUPP = UniversalProcPtr;
  209.     ComponentRoutineUPP = UniversalProcPtr;
  210. {
  211.     The parameter list for each ComponentFunction is unique. It is
  212.     therefore up to users to create the appropriate procInfo for their
  213.     own ComponentFunctions where necessary.
  214. }
  215.     ComponentFunctionUPP                = UniversalProcPtr;
  216. {
  217. *******************************************************
  218. *                                                        *
  219. *                  APPLICATION LEVEL CALLS                    *
  220. *                                                        *
  221. *******************************************************
  222. }
  223. {
  224. *******************************************************
  225. * Component Database Add, Delete, and Query Routines
  226. *******************************************************
  227. }
  228. FUNCTION RegisterComponent(VAR cd: ComponentDescription; componentEntryPoint: ComponentRoutineUPP; global: INTEGER; componentName: Handle; componentInfo: Handle; componentIcon: Handle): Component;
  229.     {$IFC NOT GENERATINGCFM}
  230.     INLINE $7001, $A82A;
  231.     {$ENDC}
  232. FUNCTION RegisterComponentResource(cr: ComponentResourceHandle; global: INTEGER): Component;
  233.     {$IFC NOT GENERATINGCFM}
  234.     INLINE $7012, $A82A;
  235.     {$ENDC}
  236. FUNCTION UnregisterComponent(aComponent: Component): OSErr;
  237.     {$IFC NOT GENERATINGCFM}
  238.     INLINE $7002, $A82A;
  239.     {$ENDC}
  240. FUNCTION FindNextComponent(aComponent: Component; VAR looking: ComponentDescription): Component;
  241.     {$IFC NOT GENERATINGCFM}
  242.     INLINE $7004, $A82A;
  243.     {$ENDC}
  244. FUNCTION CountComponents(VAR looking: ComponentDescription): LONGINT;
  245.     {$IFC NOT GENERATINGCFM}
  246.     INLINE $7003, $A82A;
  247.     {$ENDC}
  248. FUNCTION GetComponentInfo(aComponent: Component; VAR cd: ComponentDescription; componentName: Handle; componentInfo: Handle; componentIcon: Handle): OSErr;
  249.     {$IFC NOT GENERATINGCFM}
  250.     INLINE $7005, $A82A;
  251.     {$ENDC}
  252. FUNCTION GetComponentListModSeed: LONGINT;
  253.     {$IFC NOT GENERATINGCFM}
  254.     INLINE $7006, $A82A;
  255.     {$ENDC}
  256. FUNCTION GetComponentTypeModSeed(componentType: OSType): LONGINT;
  257.     {$IFC NOT GENERATINGCFM}
  258.     INLINE $702C, $A82A;
  259.     {$ENDC}
  260. {
  261. *******************************************************
  262. * Component Instance Allocation and dispatch routines
  263. *******************************************************
  264. }
  265. FUNCTION OpenAComponent(aComponent: Component; VAR ci: ComponentInstance): OSErr;
  266.     {$IFC NOT GENERATINGCFM}
  267.     INLINE $702D, $A82A;
  268.     {$ENDC}
  269. FUNCTION OpenComponent(aComponent: Component): ComponentInstance;
  270.     {$IFC NOT GENERATINGCFM}
  271.     INLINE $7007, $A82A;
  272.     {$ENDC}
  273. FUNCTION CloseComponent(aComponentInstance: ComponentInstance): OSErr;
  274.     {$IFC NOT GENERATINGCFM}
  275.     INLINE $7008, $A82A;
  276.     {$ENDC}
  277. FUNCTION GetComponentInstanceError(aComponentInstance: ComponentInstance): OSErr;
  278.     {$IFC NOT GENERATINGCFM}
  279.     INLINE $700A, $A82A;
  280.     {$ENDC}
  281. {
  282. *******************************************************
  283. *                                                        *
  284. *                      CALLS MADE BY COMPONENTS              *
  285. *                                                        *
  286. *******************************************************
  287. }
  288. {
  289. *******************************************************
  290. * Component Management routines
  291. *******************************************************
  292. }
  293. PROCEDURE SetComponentInstanceError(aComponentInstance: ComponentInstance; theError: OSErr);
  294.     {$IFC NOT GENERATINGCFM}
  295.     INLINE $700B, $A82A;
  296.     {$ENDC}
  297. FUNCTION GetComponentRefcon(aComponent: Component): LONGINT;
  298.     {$IFC NOT GENERATINGCFM}
  299.     INLINE $7010, $A82A;
  300.     {$ENDC}
  301. PROCEDURE SetComponentRefcon(aComponent: Component; theRefcon: LONGINT);
  302.     {$IFC NOT GENERATINGCFM}
  303.     INLINE $7011, $A82A;
  304.     {$ENDC}
  305. FUNCTION OpenComponentResFile(aComponent: Component): INTEGER;
  306.     {$IFC NOT GENERATINGCFM}
  307.     INLINE $7015, $A82A;
  308.     {$ENDC}
  309. FUNCTION OpenAComponentResFile(aComponent: Component; VAR resRef: INTEGER): OSErr;
  310.     {$IFC NOT GENERATINGCFM}
  311.     INLINE $702F, $A82A;
  312.     {$ENDC}
  313. FUNCTION CloseComponentResFile(refnum: INTEGER): OSErr;
  314.     {$IFC NOT GENERATINGCFM}
  315.     INLINE $7018, $A82A;
  316.     {$ENDC}
  317. {
  318. *******************************************************
  319. * Component Instance Management routines
  320. *******************************************************
  321. }
  322. FUNCTION GetComponentInstanceStorage(aComponentInstance: ComponentInstance): Handle;
  323.     {$IFC NOT GENERATINGCFM}
  324.     INLINE $700C, $A82A;
  325.     {$ENDC}
  326. PROCEDURE SetComponentInstanceStorage(aComponentInstance: ComponentInstance; theStorage: Handle);
  327.     {$IFC NOT GENERATINGCFM}
  328.     INLINE $700D, $A82A;
  329.     {$ENDC}
  330. FUNCTION GetComponentInstanceA5(aComponentInstance: ComponentInstance): LONGINT;
  331.     {$IFC NOT GENERATINGCFM}
  332.     INLINE $700E, $A82A;
  333.     {$ENDC}
  334. PROCEDURE SetComponentInstanceA5(aComponentInstance: ComponentInstance; theA5: LONGINT);
  335.     {$IFC NOT GENERATINGCFM}
  336.     INLINE $700F, $A82A;
  337.     {$ENDC}
  338. FUNCTION CountComponentInstances(aComponent: Component): LONGINT;
  339.     {$IFC NOT GENERATINGCFM}
  340.     INLINE $7013, $A82A;
  341.     {$ENDC}
  342. {  useful helper routines for convenient method dispatching  }
  343. FUNCTION CallComponentFunction(VAR params: ComponentParameters; func: ComponentFunctionUPP): LONGINT;
  344.     {$IFC NOT GENERATINGCFM}
  345.     INLINE $70FF, $A82A;
  346.     {$ENDC}
  347. FUNCTION CallComponentFunctionWithStorage(storage: Handle; VAR params: ComponentParameters; func: ComponentFunctionUPP): LONGINT;
  348.     {$IFC NOT GENERATINGCFM}
  349.     INLINE $70FF, $A82A;
  350.     {$ENDC}
  351. {$IFC GENERATINGPOWERPC }
  352. FUNCTION CallComponentFunctionWithStorageProcInfo(storage: Handle; VAR params: ComponentParameters; func: ProcPtr; funcProcInfo: LONGINT): LONGINT;
  353. {$ELSEC}
  354. {$ENDC}
  355. FUNCTION DelegateComponentCall(VAR originalParams: ComponentParameters; ci: ComponentInstance): LONGINT;
  356.     {$IFC NOT GENERATINGCFM}
  357.     INLINE $7024, $A82A;
  358.     {$ENDC}
  359. FUNCTION SetDefaultComponent(aComponent: Component; flags: INTEGER): OSErr;
  360.     {$IFC NOT GENERATINGCFM}
  361.     INLINE $701E, $A82A;
  362.     {$ENDC}
  363. FUNCTION OpenDefaultComponent(componentType: OSType; componentSubType: OSType): ComponentInstance;
  364.     {$IFC NOT GENERATINGCFM}
  365.     INLINE $7021, $A82A;
  366.     {$ENDC}
  367. FUNCTION OpenADefaultComponent(componentType: OSType; componentSubType: OSType; VAR ci: ComponentInstance): OSErr;
  368.     {$IFC NOT GENERATINGCFM}
  369.     INLINE $702E, $A82A;
  370.     {$ENDC}
  371. FUNCTION CaptureComponent(capturedComponent: Component; capturingComponent: Component): Component;
  372.     {$IFC NOT GENERATINGCFM}
  373.     INLINE $701C, $A82A;
  374.     {$ENDC}
  375. FUNCTION UncaptureComponent(aComponent: Component): OSErr;
  376.     {$IFC NOT GENERATINGCFM}
  377.     INLINE $701D, $A82A;
  378.     {$ENDC}
  379. FUNCTION RegisterComponentResourceFile(resRefNum: INTEGER; global: INTEGER): LONGINT;
  380.     {$IFC NOT GENERATINGCFM}
  381.     INLINE $7014, $A82A;
  382.     {$ENDC}
  383. FUNCTION GetComponentIconSuite(aComponent: Component; VAR iconSuite: Handle): OSErr;
  384.     {$IFC NOT GENERATINGCFM}
  385.     INLINE $7029, $A82A;
  386.     {$ENDC}
  387. {
  388. *******************************************************
  389. *                                                        *
  390. *              Direct calls to the Components                *
  391. *                                                        *
  392. *******************************************************
  393. }
  394. {  Old style names }
  395. FUNCTION ComponentFunctionImplemented(ci: ComponentInstance; ftnNumber: INTEGER): LONGINT;
  396.     {$IFC NOT GENERATINGCFM}
  397.     INLINE $2F3C, $0002, $FFFD, $7000, $A82A;
  398.     {$ENDC}
  399. FUNCTION GetComponentVersion(ci: ComponentInstance): LONGINT;
  400.     {$IFC NOT GENERATINGCFM}
  401.     INLINE $2F3C, $0000, $FFFC, $7000, $A82A;
  402.     {$ENDC}
  403. FUNCTION ComponentSetTarget(ci: ComponentInstance; target: ComponentInstance): LONGINT;
  404.     {$IFC NOT GENERATINGCFM}
  405.     INLINE $2F3C, $0004, $FFFA, $7000, $A82A;
  406.     {$ENDC}
  407. {  New style names }
  408. FUNCTION CallComponentOpen(ci: ComponentInstance; self: ComponentInstance): ComponentResult;
  409.     {$IFC NOT GENERATINGCFM}
  410.     INLINE $2F3C, $0004, $FFFF, $7000, $A82A;
  411.     {$ENDC}
  412. FUNCTION CallComponentClose(ci: ComponentInstance; self: ComponentInstance): ComponentResult;
  413.     {$IFC NOT GENERATINGCFM}
  414.     INLINE $2F3C, $0004, $FFFE, $7000, $A82A;
  415.     {$ENDC}
  416. FUNCTION CallComponentCanDo(ci: ComponentInstance; ftnNumber: INTEGER): ComponentResult;
  417.     {$IFC NOT GENERATINGCFM}
  418.     INLINE $2F3C, $0002, $FFFD, $7000, $A82A;
  419.     {$ENDC}
  420. FUNCTION CallComponentVersion(ci: ComponentInstance): ComponentResult;
  421.     {$IFC NOT GENERATINGCFM}
  422.     INLINE $2F3C, $0000, $FFFC, $7000, $A82A;
  423.     {$ENDC}
  424. FUNCTION CallComponentRegister(ci: ComponentInstance): ComponentResult;
  425.     {$IFC NOT GENERATINGCFM}
  426.     INLINE $2F3C, $0000, $FFFB, $7000, $A82A;
  427.     {$ENDC}
  428. FUNCTION CallComponentTarget(ci: ComponentInstance; target: ComponentInstance): ComponentResult;
  429.     {$IFC NOT GENERATINGCFM}
  430.     INLINE $2F3C, $0004, $FFFA, $7000, $A82A;
  431.     {$ENDC}
  432. FUNCTION CallComponentUnregister(ci: ComponentInstance): ComponentResult;
  433.     {$IFC NOT GENERATINGCFM}
  434.     INLINE $2F3C, $0000, $FFF9, $7000, $A82A;
  435.     {$ENDC}
  436. FUNCTION CallComponentGetMPWorkFunction(ci: ComponentInstance; VAR workFunction: ComponentMPWorkFunctionUPP; VAR refCon: UNIV Ptr): ComponentResult;
  437.     {$IFC NOT GENERATINGCFM}
  438.     INLINE $2F3C, $0008, $FFF8, $7000, $A82A;
  439.     {$ENDC}
  440. {  UPP call backs  }
  441.  
  442. CONST
  443.     uppComponentMPWorkFunctionProcInfo = $000003F0;
  444.     uppComponentRoutineProcInfo = $000003F0;
  445.  
  446. FUNCTION NewComponentMPWorkFunctionProc(userRoutine: ComponentMPWorkFunctionProcPtr): ComponentMPWorkFunctionUPP;
  447.     {$IFC NOT GENERATINGCFM }
  448.     INLINE $2E9F;
  449.     {$ENDC}
  450.  
  451. FUNCTION NewComponentRoutineProc(userRoutine: ComponentRoutineProcPtr): ComponentRoutineUPP;
  452.     {$IFC NOT GENERATINGCFM }
  453.     INLINE $2E9F;
  454.     {$ENDC}
  455.  
  456. FUNCTION CallComponentMPWorkFunctionProc(globalRefCon: UNIV Ptr; header: ComponentMPWorkFunctionHeaderRecordPtr; userRoutine: ComponentMPWorkFunctionUPP): ComponentResult;
  457.     {$IFC NOT GENERATINGCFM}
  458.     INLINE $205F, $4E90;
  459.     {$ENDC}
  460.  
  461. FUNCTION CallComponentRoutineProc(VAR cp: ComponentParameters; componentStorage: Handle; userRoutine: ComponentRoutineUPP): ComponentResult;
  462.     {$IFC NOT GENERATINGCFM}
  463.     INLINE $205F, $4E90;
  464.     {$ENDC}
  465. {  ProcInfos  }
  466.  
  467. {$ALIGN RESET}
  468. {$POP}
  469.  
  470. {$SETC UsingIncludes := ComponentsIncludes}
  471.  
  472. {$ENDC} {__COMPONENTS__}
  473.  
  474. {$IFC NOT UsingIncludes}
  475.  END.
  476. {$ENDC}
  477.